<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>我的账户</title>
    <link rel="shortcut icon" href="/static/favicon.ico"/>
	<link rel="stylesheet" type="text/css" href="${_front_css}/base_new.css">
    <link rel="stylesheet" type="text/css" href="${_front_css}/library.css">
    <link rel="stylesheet" type="text/css" href="${_front_font}/iconfont.css">
	<link rel="stylesheet" type="text/css" href="${_front_css}/thirdParty.css">
    <script type="text/javascript"  src="${_front_js}/jquery-1.11.1.min.js"></script>
    <script type="text/javascript"  src="${_front_js}/js.js" ></script>
  	<style>
  		.btn{
		    cursor: pointer;
		    width: 150px;
		    height: 41px;
		    border: #4db0c2 1px solid;
		    background: #5dc0d2;
		    color: #fff;
		    border-radius: 3px;
		    -webkit-border-radius: 3px;
		    -moz-border-radius: 3px;
		    -ms-border-radius: 3px;
		    text-align: center;
		    line-height: 25px;  		
  		}
  	
  	</style>
</head>

<body>	
    <!-- 头部 开始 -->
    <div id="header">
    	<#include "../base/top.ftl" />
    </div>	
    <div class="content">
       <div id="myAccountMain" class="cnt clearfix layoutMain">
		   <#include "base1.ftl" />    
		<div class="my_right">
			<div class="my_title1 ml20 mt10 w810">
				<div class="my_title_main">
					第三方托管账户
				</div>
			</div>
			<div class="w810 ml20 mt15 pt15 pb15 redius4">
				<div class="m00 w64 h64 icon_reg"></div>
				<div class="tc f20 mt20">
					您还未开通第三方资金托管账户<br>
					<span class="f14 dinb lh24 mt10 black-level3">为了您的资金安全，请先开通第三方资金托管账户。</span>
					<form action="#" target="_blank">
						<input type="button" id="btn" value="立即开通" class="mt20 btn btn-large btn-primary">
					</form>
				</div>
				<div class="b-t-gray mt30">
					<table id="tab" class="m00 hide mt30" style="display: table;">
						<tbody>
							<tr>
								<td class="black-level3 f12" style="height:30px;line-height: 30px;">
									<p>1.身份证号码须与姓名匹配，否则无法开通第三方支付。</p>
									<p>2.提现银行卡户名必须为真实姓名，否则绑卡失败，无法提现。</p>
									<p>3.第三方支付开通成功以后，个人信息将无法修改</p>
								</td>
						</tr>
						</tbody>
					</table>
				</div>
			</div>
		</div>    
    	</div>
   </div>
    <div id="footer">
      <div class="content">      
		<#include "../base/foot.ftl" />
      </div>
    </div>       
</div>
	
	<script type="text/javascript" src="${_front_js}/layer/layer.js" ></script>
	<script type="text/javascript">
		/*$("#btn").click(function(){
			$.ajax({
		     type: 'POST',
		     url: '/account/reg/check',
		     data: {'uid':${_user.id}},
		     success:function(result){
		     	if(result.code==-1){
		     		window.location.href="/hf/account/register?uid=${_user.id}";
		     	}else if(result.code == 1 ){
		     		layer.alert(result.msg, function(index){
	            			window.location.href="/account/safe";
						}); 
		     	}else if(result.code == 2){
		     		layer.alert(result.msg, function(index){
	            			window.location.href="/account/safe";
						});
		     	}
		     }
			});
		})*/
		$("#btn").click(function(){
			var oldUser = "<#if user?exists>${user.oldUser!}</#if>";
			//var cityCode = "<#if bankCard?exists>${bankCard.cityCode!}</#if>";
			if(oldUser != '' && oldUser == 'Y') {
				layer.confirm('老用户需要重新实名认证并绑定银行卡，才能注册第三方资金托管账户！是否删除原有实名认证以及银行卡重新绑定？', {
					btn: ['重新绑定','不绑定'] //按钮
				}, function(){
				  window.location.href = "/account/thirdRegister?oldUser=Y";
				}, function(){
				  window.location.reload();
				});
	 		}else {
	 			window.location.href = "/account/thirdRegister";
	 		}
		});
		/*$("#btn").click(function(){
			window.location.href = "/account/thirdRegister";
		});*/
		</script>
</body>
</html>       